﻿
namespace Phone
{
    public class Phone
    {
        public string Brand { get; set; }
        
        public ushort Weight { get; set; }
        
        public uint Camera { get; set; }
        
        public decimal Price { get; set; }
        
        public Phone(string brand, ushort weight, uint camera, decimal price)
        {
            Brand = brand;
            Weight = weight;
            Camera = camera;
            Price = price;
        }
        
        public void PrintInfo()
        {
            Console.WriteLine("手机信息:");
            Console.WriteLine($"品牌: {Brand}");
            Console.WriteLine($"重量: {Weight}g");
            Console.WriteLine($"后置摄像头像素: {Camera:N0}".Replace(",", ","));
            Console.WriteLine($"价格: {Price:C}");
        }
    }
}